/*
* Copyright© 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.netty.server.server.module.login.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Description: 登录模块dao
 *
 * @author YangGuang
 * @since: 1.0
 * Create Date Time: 2018/7/16 16:16
 * Update Date Time:
 */
@Mapper
public interface LoginDao {

    /**
     * 判断乘客是否存在
     * @param mobile 手机号
     * @return
     */
    int isExistPassenger(String mobile);

    /**
     * 判断车主是否存在
     * @param mobile 手机号
     * @return
     */
    int isExistDriver(String mobile);

    int seldriver(@Param("mobile") String mobile,@Param("token") String token);

    int selpassenger(@Param("mobile") String mobile,@Param("token") String token);
}
